package com.itany.shop.service;

import com.itany.shop.exception.ParameterErrorException;
import com.itany.shop.exception.ProductNotExistException;
import com.itany.shop.exception.UserNotLoginException;
import com.itany.shop.vo.Cart;

/**
 * @author 石小俊
 * @date 2023年06月07日 9:53
 */
public interface CartService {

    /**
     * 将指定商品加入到购物车中
     * @param cart
     * @param id
     */
    public void addCart(Cart cart,Integer id) throws UserNotLoginException, ParameterErrorException, ProductNotExistException;

}
